/*
 * KKHttpUtils.cpp
 *
 *  Created on: 2013-8-28
 *      Author: wh
 */

#include "KKHttpUtils.h"

KKHttpUtils::KKHttpUtils() {
}

KKHttpUtils::~KKHttpUtils() {
}

bool KKHttpUtils::init() {
	return true;
}

KKGetMethod* KKHttpUtils::getText(const char* url, const char* tag) {

	KKGetMethod* getMethod = KKGetMethod::create();

	getMethod->initData(url, tag);

	return getMethod;

}

KKPostMethod* KKHttpUtils::post(const char* url, const char* tag) {

	KKPostMethod* postMethod = KKPostMethod::create();

	postMethod->initData(url, tag);

	return postMethod;
}
